package com.vcc.service.boss.response.cardOrder;

import com.vcc.data.entity.CardOrder;
import com.vcc.service.client.vo.baseVo.BaseVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class CardOrderVo extends BaseVo {
    private Long userId;
    private String account;
    private Long operatorUserIdId;
    private String cardNumber;
    private Long cardNumberId;
    private Long cardTypeId;
    private String orderNo;
    private String orderStatus;
    private BigDecimal orderAmount;
    private String orderCurrency;
    private String orderType;
    private Date requestTime;
    private Date completeTime;
    private String orderRemark;
    private String orderSource;

    public CardOrderVo() {
    }

    public  CardOrderVo(CardOrder cardOrder,String account) {
        super.setId(cardOrder.getId());
        super.setCreateDate(cardOrder.getCreateDate());
        this.setUpdateDate(cardOrder.getUpdateDate());
        this.userId = cardOrder.getUserId();
        this.account = account;
        this.operatorUserIdId = 0L;
        this.cardNumber = cardOrder.getCardNumber();
        this.cardNumberId = cardOrder.getCardNumberId();
        this.cardTypeId = cardOrder.getCardTypeId();
        this.orderNo = cardOrder.getOrderNo();
        this.orderStatus = cardOrder.getOrderStatus();
        this.orderAmount = cardOrder.getOrderAmount();
        this.orderCurrency = cardOrder.getOrderCurrency();
        this.orderType = cardOrder.getOrderType();
        this.requestTime = cardOrder.getRequestTime();
        this.completeTime = cardOrder.getCompleteTime();
        this.orderRemark = cardOrder.getOrderRemark();
        this.orderSource = cardOrder.getOrderSource();
    }
}
